import request from '@/api/request'

// 获取项目列表
const getProjectList = () => {
  return request({
    url: '/project/list',
    method: 'get'
  })
}

// 添加项目
const addProject = (data) => {
  return request({
    url: '/project/addProject',
    method: 'post',
    data: { ...data }
  })
}

// 修改项目
const editProject = (data) => {
  return request({
    url: '/project/editProject',
    method: 'post',
    data: { ...data }
  })
}

export default { getProjectList, addProject, editProject }
